<?php 
$find = false;
include('../Connections/KRAPPERCON.php');
$orden = '';
$userid = '';
$feccre = '';
$edit = 0;
?>
<div>
  <table width="100%" cellpadding="0" cellspacing="0">
    <tr>
      <td><input type="button" value="Nueva OT" onclick="nuevaOC();" />
        &nbsp;
        <input style="display:<?php echo $edit ?>" type="button" value="Editar" onclick="editarOC();" />
        &nbsp;
        <input type="button" value="Grabar" onClick="grabarOC()">
        &nbsp;
        <input type="button" value="Imprimir" onClick="imprimirOC()">
        &nbsp;
        <input type="button" value="Listado" onClick="listarOC()">
        &nbsp;
        <!--<input type="button" value="Verificar" onClick="verificarOC()">-->
        &nbsp;
        <input type="text" name="t_mo_noc" id="t_mo_noc" onkeypress="showOC(event)" /></td>
      <td align="right">&nbsp;</td>
    </tr>
  </table>
</div>
<?php 
if ($find){
?>
<div class="subTit">
<?php 
echo "Orden de Trabajo ".$orden." creado por ".$userid." el ".$feccre;
?>
</div>
<p>
  <?php
}
?>
</p>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>Ini.Programado :</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Fin Programado :</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<p>&nbsp;</p>
<table width="100%" border="0" cellspacing="0" id="tbl_dat_oc" cellpadding="0">
  <caption align="left" style="font-weight:bold">Datos del Cliente</caption>
    <tr>
    <td>Solicitante :</td>
    <td>
      <input name="t_ot_ccl" type="text" id="t_ot_ccl" size="10">
      <input name="t_ot_noc" type="text" id="t_ot_noc" size="40">
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>
        <input name="t_ot_apc" type="text" id="t_ot_apc" size="51">
      </td>
    </tr>
    <tr>
      <td>Dirección :</td>
      <td>
        <input name="t_ot_dic" type="text" id="t_ot_dic" size="60">
      </td>
    </tr>
    <tr>
      <td>Teléfono :</td>
      <td>
        <input type="text" name="t_ot_tec" id="t_ot_tec">
      </td>
    </tr>
    </table>
<hr>
  <table width="100%" border="0" cellspacing="0" id="tbl_dat_oc2" cellpadding="0">
<caption align="left" style="font-weight:bold">
      Datos del Vehículo
    </caption>
    <tr>
      <td>ID Vehículo :</td>
      <td>
          
          <input name="t_ot_cve" type="text" id="t_ot_cve" size="10">
      </td>
    </tr>
    <tr>
      <td>Placa :</td>
      <td>
        <input name="t_ot_ccl2" type="text" id="t_ot_ccl2" size="15">
      </td>
    </tr>
    <tr>
      <td>Marca :</td>
      <td>
        <select name="cb_mar_veh" id="cb_mar_veh">
        </select>
      Modelo     
      <select name="cb_mod_veh" id="cb_mod_veh">
      </select>
      </td>
    </tr>
    <tr>
      <td>Color :</td>
      <td>
        <input type="text" name="t_ot_tec2" id="t_ot_tec2">
      </td>
    </tr>
  </table>
  <hr>
  <table width="100%" cellpadding="0" cellspacing="0">
  <tr><td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
   <caption style="font-weight:bold" align="left">Servicios</caption>
   <thead>
    <tr>
      <th>idServicio</th>
      <th>Descripción</th>
    </tr>
    </thead>
    <tbody>
    <tr>
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    </tbody>
    <tfoot>
    <tr>
      <td>
        <input type="submit" name="btn_add" id="btn_add" value="Agregar">
      </td>
      <td>
        <select style="width:90%"  name="cb_ser_new" id="cb_ser_new">
        </select>
      </td>
    </tr>
    </tfoot>
  </table></td>
  <td>&nbsp;</td>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <caption style="font-weight:bold" align="left">
          Componentes
        </caption>
        <thead>
      <tr>
        <th>Item</th>
          <th>Codigo</th>
          <th>Descripción</th>
          <th>Ctd.</th>
          <th>Precio UN</th>
          <th>Neto</th>
      </tr>
      </thead>
      <tbody>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        </tbody>
        <tfoot>
        <tr>
          <td>&nbsp;</td>
          <td>
            <input type="text" name="t_cod_new"  id="t_cod_new">
          </td>
          <td>&nbsp;</td>
          <td>
            <input type="text" class="qt" name="t_pre_new" id="t_pre_new">
          </td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        </tfoot>
    </table></td>
</tr>
  </table>
  <hr>
  <table width="100%" cellpadding="0" cellspacing="0">
  <caption align="left" style="font-weight:bold">Facturación</caption>
  <tr><td>&nbsp;</td></tr>
  </table>
